package com.example.ctrip.commons;



public enum CommonResult {
    SUCCESS("200", "success", "成功"),
    FAIL("201", "fail", "失败"),
    U_P_FAIL("200001", "fail", "用户名或者密码不正确", ""),
    NO_SEARCH_AIR("202","success","未找到对应航班","未找到对应航班"),
    NO_SEARCH_CABIN("203","success","未找到对应舱位的数据","未找到对应舱位的数据"),
    TASK_FAILED("204","task_failed","任务失败","任务失败"),
    CHANGE_PROXY_IP("205","fail","重新更换代理IP地址","重新更换代理IP地址");

    private String code;
    private String status;
    private String msg;
    private String data;

    CommonResult(String code, String status, String msg) {
        this.code = code;
        this.status = status;
        this.msg = msg;
    }

    CommonResult(String code, String status, String msg, String data) {
        this.code = code;
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public String getData() {
        return data;
    }

    public CommonResult setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
